<%@ page session="true" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>    


<html>
	<head>
		<title><fmt:message key="form.title"/></title>

		<link rel="stylesheet" type="text/css" href="main.css">
	</head>
		
	<body>
		<center>
			<table class="banner" border="0" cellpadding="4" cellspacing="0" width="400">
			<tbody><tr>
				<td width="200">
					<spring:bind path="alias">
						<ul>
							<c:forEach items="${status.errorMessages}" var="errorMessage">
								<li style="color:red"><fmt:message key="${errorMessage}"/></li>
							</c:forEach>
						</ul>
					</spring:bind>
					</td>
				</tr>
			</tbody>
			</table>

			<table class="main" border="0" cellpadding="0" cellspacing="0" width="400">
			<tbody>
				<tr><td class="mainright" align="center" valign="top">
				<form method="post" action="edit.htm">

				<table class="goodmessage" style="margin-top: 8px; margin-bottom: 8px;" border="0" cellpadding="8" cellspacing="0" width="400">
				<tbody>
					<tr>
					<td>
						<span class="smalltext">
							<b><fmt:message key="instr.title"/></b> 
							<fmt:message key="instr.edit"/>
						</span>
					</td>
					</tr>
				</tbody></table>
				
				<table class="right" border="1" cellpadding="4" cellspacing="0" width="400">
				<tbody>
				<tr>
					<th class="right" align="left">
						<b><fmt:message key="table.edit"/></b>
					</th>
				</tr>
				
				<tr>
					<td class="right" valign="top">
					<table border="0" cellpadding="2" cellspacing="0" width="100%">
					<tbody>
						<tr>
							<td>
								<label><fmt:message key="field.alias"/></label>
							</td>
							<spring:bind path="alias.alias">
								<td><input readonly="true" class="textfield" type="text" name="alias" value="${status.value}"/></td>
							</spring:bind>
						</tr>
						
						<tr>
							<td><label><fmt:message key="field.forward"/></label></td>
							<spring:bind path="alias.email">
								<td><input readonly="true" class="textfield" type="text" name="email" value="${status.value}"/></td>
							</spring:bind>
						</tr>

						<tr>
							<td><label><fmt:message key="field.lifetime"/></label></td>
							<spring:bind path="alias.minutes">
								<td>
									<input type="radio" name="minutes" value="5" checked="true">5'
									<input type="radio" name="minutes" value="15">15'
									<input type="radio" name="minutes" value="30">30'
									<input type="radio" name="minutes" value="60">60'<br>
									<input type="radio" name="minutes" value="720">12 <fmt:message key="time.hour"/>
									<input type="radio" name="minutes" value="1440">1 <fmt:message key="time.day"/>
								</td>
							</spring:bind>
						</tr>
						
						
						<tr>
							<td colspan="2" align="center">
							<input class="button" type="submit" value="<fmt:message key="button.submit"/>" />
							</td>
						</tr>
					</tbody></table>
					</td>
				</tr>
				</tbody></table>
			</form>
			</td></tr>
			</tbody></table>
			
			<br>
			
			<hr noshade="noshade" size="1" width="400">
			<table class="footer" border="0" cellpadding="4" cellspacing="0" width="400">
				<tbody>
					<tr>
						<td align="center" valign="top">
							<fmt:message key="footer.msg"/>
							<ul>
								<li><a href="http://bcurtu.blospot.com"><fmt:message key="footer.blog"/></a></li>
								<li><a href="http://bcurtu.blogspot.com/2006/08/temporal-email.html"><fmt:message key="footer.tempalias"/></a></li>
								<li><a href="http://code.google.com/p/tempmail/"><fmt:message key="footer.site"/></a></li>
							</ul>
						</td>
					</tr>
			</tbody></table>
			
		</center>
	</body></html>

